package HelloSeries.ui.prefs.elems.flextables.renderer;

import java.awt.*;
import javax.swing.*;
import javax.swing.table.*;


public class ButtonRenderer extends JButton implements TableCellRenderer {

	public ButtonRenderer() {
		setOpaque(true);
	}

	public Component getTableCellRendererComponent(JTable table, Object value,
			boolean isSelected, boolean hasFocus, int row, int column) {

		setText(((JButton) value).getText());
		return this;
	}
}